package com.atmc.mapper;

import com.atmc.entity.DetailsOrder;
import com.atmc.entity.GoodsOrder;
import com.atmc.entity.PetsInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @BelongsProject: SpringCloud1216
 * @BelongsPackage: com.atmc.mapper
 * @Author: chuyings
 * @CreateTime: 2022-11-17  17:53
 * @Version: 1.0
 */
@Mapper
@Repository
public interface DetailsOrderMapper {
    int insertDetailsOrder(DetailsOrder detailsOrder);
    DetailsOrder queryByDetailsNumber(@Param("detailsNumber") Long detailsNumber);
    List<GoodsOrder> getGoodsOrderAll(@Param("userName") String userName);
    List<PetsInfo> selectAllPetsByUserName(@Param("userName") String userName);
}
